import type { DialogItem } from './dialog'
import { MessageType, SendStatus } from '@/stores/modules/dialog'
import { uuid } from '@/utils/uuid'


export const dialogInit = (): DialogItem[] => {
    return [
        {
            recordId: uuid(),
            sendUserId: '1',
            sendTime: 1741231206000,
            type: MessageType.TEXT,
            content: 'Hello, World!',
            isSelf: true,
            status: SendStatus.SUCCESS,
        },
        {
            recordId: uuid(),
            sendUserId: '2',
            sendTime: 1741231322000,
            type: MessageType.TEXT,
            content: '你也好',
            isSelf: false,
            status: SendStatus.SUCCESS,
        },
        {
            recordId: uuid(),
            sendUserId: '2',
            sendTime: 1741231357000,
            type: MessageType.TEXT,
            content: '你哪里怎么样',
            isSelf: false,
            status: SendStatus.SUCCESS,
        },
        {
            recordId: uuid(),
            sendUserId: '1',
            sendTime: 1741233590000,
            type: MessageType.TEXT,
            content: '一切正常',
            isSelf: true,
            status: SendStatus.SUCCESS,
        },
    ]
}